<?php
/**
 * Created by PhpStorm.
 * User: 王峥宇
 * Date: 2019-04-30
 * Time: 1:58
 */

namespace app\admin\controller;

use app\admin\model\Setup as SetupModel;

class Setup extends Base
{
    public function index(){
        if(request()->isAjax()) {
            $set =SetupModel::getSetup();
            return $set;
        }else{
            $set =SetupModel::getSetup();
            $this->assign('set',$set);
            return $this->fetch();
        }

    }
}